package edu.wfu.preparedDishes.user.dao;

import edu.wfu.preparedDishes.user.entity.AddressEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 收货地址表;
 * 
 * @author ljh
 * @email hero_miracle@gmail.com
 * @date 2023-11-24 17:02:00
 */
@Mapper
public interface AddressDao extends BaseMapper<AddressEntity> {

    /**
     * 根据用户id查询收货地址
     * @param userId
     * @return
     */

    List<AddressEntity> queryAddressByUserId(String userId);

    AddressEntity queryAddressByAddressId(String addressId);
}
